<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnParamInPlaylistVersionTable extends AbstractMigration
{
    public function up()
    {
        $this->table('playlist_version')
            ->addColumn('param', 'json', ['null' => true, 'comment' => 'json字段，存储相关字段'])
            ->save();
    }

    public function down()
    {
        $this->table('playlist_version')
            ->removeColumn('param')
            ->save();
    }
}
